<script lang="ts">
  import { footer } from "./theme";
  import clsx from "clsx";
  import type { FooterProps } from "$lib";
  import { getTheme } from "$lib/theme/themeUtils";

  let { children, footerType = "default", class: className, ...restProps }: FooterProps = $props();

  const theme = getTheme("footer");

  const footerCls = $derived(footer({ footerType, class: clsx(theme, className) }));
</script>

<footer {...restProps} class={footerCls}>
  {@render children()}
</footer>

<!--
@component
[Go to docs](https://flowbite-svelte.com/)
## Type
[FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L728)
## Props
@prop children
@prop footerType = "default"
@prop class: className
@prop ...restProps
-->
